{layout name="layout/default" /}
<div class="panel panel-default panel-intro">
    <div class="panel-heading"><div class="panel-lead"><em>{$nav_title.title}</em>{$nav_title.remark}</div></div>
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in">
                <div class="widget-body no-padding">
                <div class="bootstrap-table"><div class="fixed-table-toolbar"><div class="bs-bars pull-left"><div id="toolbar" class="toolbar"><a href="{:admin_url('admin/group/index')}" class="btn btn-primary ajax-url"><i class="fa fa-refresh"></i> </a>
                <a href="javascript:;" data-name="添加管理组" data-url="{:admin_url('admin/group/add')}" class="btn btn-success btn-add btn-editone" data-width="100%" data-height="100%" data-offset="0px"><i class="fa fa-plus"></i> 添加</a>  
                 <a  url="{:admin_url('admin/group/status',array('status'=>1))}" target-form="ids" class="confirm btn btn-info btn-disabled btn-disabled ajax-post disabled"><i class="fa fa-unlock"></i> 启用</a>
                 <a  url="{:admin_url('admin/group/status',array('status'=>0))}" target-form="ids" class="confirm btn btn-warning btn-disabled btn-disabled ajax-post disabled"><i class="fa fa-lock"></i> 禁用</a>
                 <a  url="{:admin_url('admin/group/del')}" target-form="ids" class="confirm btn btn-danger btn-del btn-disabled ajax-post disabled"><i class="fa fa-trash"></i> 删除</a> <span id="selectedChks" style="display:none">已选择<strong></strong>记录</span>
                    </div></div></div></div>
                    <div class="fixed-table-container" style="padding-bottom: 0px;">
                    <div class="fixed-table-body" id="contents">
                    <form class="ids">
         <table id="table" class="table table-striped table-bordered table-hover" style="margin-top: 0px;" width="100%">
          <thead>
            <tr style="height:45px;">
             <th align="center" class="bs-checkbox"><input name="chkall" type="checkbox" id="chkall"></th>
             <th  style="text-align:center;vertical-align: middle;">ID</th>
              <th style="text-align:center;vertical-align: middle;">组名</th>
              <th style="text-align:center;vertical-align: middle;">描述</th>
              <th style="text-align:center;vertical-align: middle;">状态</th>
              <th style="text-align:center;vertical-align: middle;">操作</th>
            </tr>
           </thead>
           <tbody>  
           {notempty name="list"}           
                {volist name="list" id="item"}
                <tr>
                <td class="bs-checkbox" style="text-align:center;vertical-align: middle;"><input name="id[]" type="checkbox" value="{$item['id']}" id="checkbox"></td>
                <td style="text-align:center;vertical-align:middle;">{$item['id']}</td>
                <td style="text-align:center;vertical-align:middle;"><a href="javascript:;" class="btn-link editable editable-click" data-id="{$item['id']}" data-name="title" data-type="text" data-pk="{$item['id']}" data-url="{:admin_url('admin/group/editable')}">{$item['title']}</a></td>
                <td align="center"><a href="javascript:;" class="btn-link editable editable-click" data-id="{$item['id']}" data-name="description" data-type="text" data-pk="{$item['id']}" data-url="{:admin_url('admin/group/editable')}">{$item['description']}</a></td>
                <td style="text-align:center;vertical-align: middle;">
                {eq name="item.status" value="1"}
                 <a class="btn btn-info btn-xs btn-success ajax-get" url="{:admin_url('admin/group/status',array('id'=> $item['id'],'status'=>0))}">启用</a>{else /}<a class="btn btn-info btn-xs btn-danger ajax-get" url="{:admin_url('admin/group/status',array('id'=> $item['id'],'status'=>1))}">禁用</a>{/eq}
</td>

                <td style="text-align:center;vertical-align: middle;">
                <a href="javascript:;" data-name="编辑管理组{$item['title']}" data-url="{:admin_url('admin/group/edit',array('id'=>$item['id']))}" class="btn btn-success btn-editone btn-xs" data-width="100%" data-height="100%" data-offset="0px"><i class="fa fa-pencil"></i> 编辑</a>
				<a url="{:admin_url('admin/group/del',array('id'=>$item['id']))}" class="confirm btn btn-danger btn-xs confirm ajax-get"><i class="fa fa-trash-o"></i> 删除</a>
                </td>
              </tr>
                 {/volist}
                 {else/}<tr><td style="text-align:center;vertical-align: middle;" colspan="6" >抱歉，没有找到相关内容！</td></tr>{/notempty}           
          </tbody>
        </table>
       </form>
                    </div></div></div><div class="clearfix"></div>
                </div>
            </div>
            </div>
    </div>
</div>